import React from 'react'
import useClientWidth from './useClientWidth'

export default function TestCom() {
  let width = useClientWidth()
  return (
    <div>
      <span>当前视口的宽度为: {width} </span>
    </div>
  )
}
